/*
 * RSABreaker.h
 *
 *  Created on: Nov 13, 2011
 *      Author: kimi
 */

#ifndef RSABREAKER_H_
#define RSABREAKER_H_
#include "../Configuration/Properties.h"
#include <string>
#include "../Crypto/RSA.h"

using namespace std;

class RSABreaker {
public:
	RSABreaker();
	virtual ~RSABreaker();

	bool breakByForceAttack(Properties* props);

private:

	unsigned long nextPrimeNumber(unsigned long num);
	unsigned long prevPrimeNumber(unsigned long num);

	RSA* rsa;
};
#endif /* RSABREAKER_H_ */
